import React from 'react';
import { Cascader, Flex } from 'antd';
const options = [
  {
    value: 'zhejiang',
    label: 'Zhejiang',
    children: [
      {
        value: 'hangzhou',
        label: 'Hangzhou',
        children: [
          {
            value: 'xihu',
            label: 'West Lake',
          },
        ],
      },
    ],
  },
  {
    value: 'jiangsu',
    label: 'Jiangsu',
    children: [
      {
        value: 'nanjing',
        label: 'Nanjing',
        children: [
          {
            value: 'zhonghuamen',
            label: 'Zhong Hua Men',
          },
        ],
      },
    ],
  },
];
const onChange = (value) => {
  console.log(value);
};
const onMultipleChange = (value) => {
  console.log(value);
};
const Cascader2 = () => (
  <Flex vertical gap="small" align="flex-start">
    {/* <Cascader.Panel options={options} onChange={onChange} /> */}
    <Cascader.Panel  options={options} onChange={onMultipleChange} />
    {/* <Cascader.Panel /> */}
  </Flex>
);
export default Cascader2;